package com.example.auth.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.auth.domain.DataNode;
import com.example.config.exception.GlobalExcetion;

import java.util.List;

/**
* @author CETC
* @description 针对表【data_node_config】的数据库操作Service
* @createDate 2025-10-03 10:19:15
*/
public interface DataNodeService extends IService<DataNode> {

    public DataNode getByIdCache(String id);

    public IPage<DataNode> page(Integer pageNum, Integer pageSize, String nodeName);

    public DataNode getByNodeServerName(String serverName);

    public List<DataNode> getDataNodeListByNodeNo(String nodeNo);

    public DataNode saveDataNode(DataNode dataNode) throws GlobalExcetion;

    public DataNode updateDataNode(DataNode dataNode);

    public List<DataNode> getByIds(List<String> idList);
}
